package com.csu.mypetstore.api.service;

import com.csu.mypetstore.api.common.CommonResponse;
import com.csu.mypetstore.api.entity.Account;
import com.csu.mypetstore.api.entity.SignOn;
import com.csu.mypetstore.api.vo.AccountVO;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpSession;

public interface AccountService {
    CommonResponse<AccountVO> getAccount(String username , String password);
    CommonResponse<AccountVO> getAccount(String username);
    CommonResponse<AccountVO> registerAccount(AccountVO accountVO);
    CommonResponse<Boolean>   isUsernameExist(String username);
    CommonResponse<Integer>   resetPassword(SignOn account);
    CommonResponse<AccountVO>   updateAccountInfo(AccountVO accountVO);  //更新账号信息
}
